From: Glenn Morris Date: Wed, 23 Mar 2011 02:52:52 +0000 (-0700) Subject: esh-opt trivia. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4322 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=915a9e89fd97d17f3034de3943b5868038299ba3;p=emacs.git esh-opt trivia. * lisp/eshell/esh-opt.el (eshell-eval-using-options): Do not bind unused local variable `eshell-option-stub'. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 51fd7ebd815..dfab2be5196 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-03-23 Glenn Morris + * eshell/esh-opt.el (eshell-eval-using-options): + Do not bind unused local variable `eshell-option-stub'. + * progmodes/gdb-mi.el (gdb): Fix typo in previous change. 2011-03-22 Juanma Barranquero diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el index a9e8f11c39a..91d3cac198a 100644 --- a/lisp/eshell/esh-opt.el +++ b/lisp/eshell/esh-opt.el @@ -102,10 +102,9 @@ interned variable `args' (created using a `let' form)." macro-args (list 'eshell-stringify-list (list 'eshell-flatten-list macro-args))))) - (let ,(append (mapcar (lambda (opt) - (or (and (listp opt) (nth 3 opt)) - 'eshell-option-stub)) - (cadr options)) + (let ,(append (delq nil (mapcar (lambda (opt) + (and (listp opt) (nth 3 opt))) + (cadr options))) '(usage-msg last-value ext-command args)) (eshell-do-opt ,name ,options (quote ,body-forms)))))